package com.haihui.platform.utils;

import java.util.Date;
import java.util.Random;

/*
 * 主键生成
 */
public class PrimaryKeyGen {

	public static final Date date = new Date();
	
	public static final Random ran = new Random();
	
	//生成key
	public static long getKey(){
		return Long.valueOf(String.valueOf(date.getTime())+(ran.nextInt(900)+100));
	}
	
}
